package com.ruibang.glass.portal.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 1 * @类：
 * 2 * @开发者: HuangLiBin
 * 3 * @时间 2022/10/20 17:10
 */
@Data
public class SaveUserReq {


    @ApiModelProperty(name = "人脸请求标识码，用于删除用户")
    private Long logId;

    @ApiModelProperty(name = "人脸图片的唯一标识")
    private String faceToken;
    //登录员工Id
    @ApiModelProperty(name = "登录员工号")
    private String loginName;
    //名称
    @ApiModelProperty(name = "名称")
    private String name;
    @ApiModelProperty(name = "性别：0：未知,1：男，2：女")
    private String sex;
    //密码
    @ApiModelProperty(name = "密码")
    private String password;
    //部门id
    @ApiModelProperty(name = "部门id")
    private String deptId;

    @ApiModelProperty(name = "部门名称")
    @TableField(exist = false)
    private String deptName;

    //状态1 正常 2 禁用 3 删除
    @ApiModelProperty(name = "状态")
    private Integer status;
    //手机号码
    @ApiModelProperty(name = "手机号码")
    private String mobile;

    @ApiModelProperty(name = "产线")
    private List<String> productLines;

    //手机号码
    @ApiModelProperty(name = "邮箱")
    private String email;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String salt;

    @ApiModelProperty(value = "用户类型,1 超级管理员，2 管理员，3 员工，9 pc端登录不过期用户")
    private String userType;

    @ApiModelProperty(value = "职务")
    private String duty;

    @ApiModelProperty(name = "角色ID列表", value = "roleIds", required = true)
    @TableField(exist = false)
    private List<String> roleIds;

    @ApiModelProperty(name = "角色列表")
    @TableField(exist = false)
    private List<UserRole> roles;

    @ApiModelProperty(name = "客户端Id")
    private String clientId;

    @ApiModelProperty(name = "人脸")
    @TableField(exist = false)
    private String imageBase64;

}
